﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.Master" AutoEventWireup="true" CodeBehind="CompanyPostNewProduct.aspx.cs" Inherits="E_Shop.CompanyPostNewProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="frmPostProduct" action="PostProduct.aspx">
        <div style ="width:100%" class="stuff3">
             <h3 class="mto_title">Post a New Product</h3>
             <div align="right">
                <span class="required">required information</span>
             </div>
             <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                    <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Product Name:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtProduct" runat="server" class="inp-form"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txtProduct" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                            
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Select Categories:                                
                            </td>
                            <td style="width: 391px">
                                <asp:DropDownList ID="ddlcategory" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Region:                                
                            </td>
                            <td style="width: 391px">
                                <asp:DropDownList ID="ddlcounttry" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                    <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Price:                           
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtprice" runat="server" class="inp-form"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="txtprice" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ControlToValidate="txtprice" Display="Dynamic" 
                                    ErrorMessage="Please enter numbers only" ValidationExpression="\d+"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                    <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Image:                           
                            </td>
                            
                                    <script type="text/javascript">
                                        function getFile() {
                                            document.getElementById("choseimage").click();
                                        }
                                        function sub(obj) {

                                            var file = obj.value;
                                            var fileName = file.split("\\");
                                            $("#lbimage").val(file);

                                        }
                                    </script>

                            <td class="style2">

                                <asp:FileUpload ID="fuImage" runat="server" /> 
                                
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                                
                                    <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Dcription:                           
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtmota" runat="server" TextMode="MultiLine" class="form-textarea"/>
                            </td>
                        </tr>
                        
                       
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">                               
                                 
                            </td>
                            <td class="style2">                                
                                 <asp:Button ID="btnOk" runat="server" class="form-submit" 
                                       onclick="btnOk_Click" />
                            </td>
                        </tr>
             </table>
        </div>
   </form>

</asp:Content>
